class CreateEvaluations < ActiveRecord::Migration
  def self.up
    create_table :evaluations do |t|
      t.integer :user_id
      t.integer :questionnaire_id
      
      t.float :score
      t.integer :number_of_questions
      t.integer :answered_questions
      t.integer :correct_answers
      t.integer :not_perfect_answers

      t.timestamps
    end
  end

  def self.down
    drop_table :evaluations
  end
end
